<template>
    <ItCardPage title="测试2">
      <template #headerRender>
        <Button type="primary">456</Button>
      </template>
      <ItSimpleTable v-bind="tableProps" />
    </ItCardPage>
</template>
<script lang="ts" setup>
import { Button } from 'ant-design-vue';
import { pagePost } from '../api';


const tableProps = {
  dataKey: 'records',
  columns: [
  {
    title: '用户id',
    dataIndex: 'userId',
    width: '10%',
  },
  {
    title: '标题',
    dataIndex: 'title',
    width: '30%',
  },
  {
    title: '内容',
    dataIndex: 'body',
  },
],
  service: pagePost,
}

    

</script>